using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace YushengMall.Backend.Api.Entity
{
    /// <summary>
    /// 角色表
    /// </summary>
    public record Role : EntityBase
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        /// <value></value>
        [Column(TypeName ="varchar(20)")]
        public string RoleName{get;set;}
        public virtual IEnumerable<UserRole> UserRole{get;set;}
    }
}